package
{
	import starling.display.Sprite;
	import starling.events.Event;
	import starling.display.MovieClip;
	import starling.core.Starling;
	
	public class HsharmaHero extends Sprite
	{
		public function HsharmaHero()
		{
			super();
			this.addEventListener(starling.events.Event.ADDED_TO_STAGE, onAddedToStage);
		}

		private var hero:MovieClip;
		private var hero2:MovieClip;
		private function onAddedToStage(event:Event):void
		{
			//hero = new MovieClip(Assets.getAtlas().getTextures("fly_"),24);
			hero = new MovieClip(Assets.getAtlas("FlyerAtlas").getTextures("fly_"),24);
			hero2 = new MovieClip(Assets.getAtlas("GunnerAtlas").getTextures("hero_walk_hgun_"),24);
			
			starling.core.Starling.juggler.add(hero);
			this.addChild(hero);
			
			starling.core.Starling.juggler.add(hero2);
			this.addChild(hero2);
			
		}
	}
}